<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="http://cdn.bigpixel.cn/libs/jquery/jquery-1.11.3.min.js"></script>
    <!--<script src="http://cdn.bigpixel.cn/libs/jquery/jquery-2.1.4.min.js"></script>-->
    <script type="text/javascript" src="/scripts/jquery.bigpixel.js"></script>
</head>
<body>
<div id="login">登录</div>

<script>
    $("#login").click(function(){
        $.bigpixel.getCurrentUser(function(userinfo){
            console.log(userinfo);
            console.log(userinfo._id);
            console.log(userinfo.wechat.nickname);
            console.log(userinfo.wechat.headimgurl);
            console.log(userinfo.wechat.sex);
        })
    });
</script>


</body>
</html>